
import { API_CONFIG } from "../config/index.js";
import request from '../api/index.js'
// 节点操作
export const getNodeHandler = () => {
    return request(API_CONFIG.getNodeApi, {}, "get", 2000)
}

// export const createNodeHandler = () => {
//     return request(API_CONFIG.createNodeApi, {}, "post", 2000)
// }
export const updateNodeHandler = (clusterId, name, item) => {
    return request(API_CONFIG.updateNodeApi, {clusterId, name, item}, "post", 2000)
}
// export const deleteNodeHandler = () => {
//     return request(API_CONFIG.deleteNodeApi, {}, "post", 2000)
// }